<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%recover}}".
 *
 * @property integer $id
 * @property string $gtable
 * @property string $class_name
 * @property string $deleted_by
 * @property string $delete_time
 * @property string $route
 * @property integer $fid
 */
class Recover extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%recover}}';
    }

    /**
     * @return string
     */

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['class_name', 'deleted_by', 'delete_time'], 'required'],
            [['delete_time'], 'safe'],
            [['fid'], 'integer'],
            [['gtable', 'class_name', 'deleted_by', 'route'], 'string', 'max' => 20],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'id',
            'gtable' => '关联的表名',
            'class_name' => '类名称',
            'deleted_by' => '删除人',
            'delete_time' => '删除时间',
            'route' => '查看的路径',
            'fid' => '外键',
        ];
    }
}
